﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
//using System.Windows.Shapes;
//using System.Drawing;
using Edytor.Converters;
using Edytor.ModelViews;
namespace Edytor.AppCode
{
    public partial class fmNewMap : Window
    {
        ModelViews.NewMapWindowModelView modelView;
        public string MapName
        {
            get
            {
                return modelView.MapName;
            }
        }

        public Point MapSize
        {
            get
            {
                return modelView.MapSize ;
            }
        }

        public Point TileSize
        {
            get
            {
                return modelView.TileSize;
            }
        }

        public bool CzyDodano
        {
            get { return modelView.CzyDodano; }
        }
        public fmNewMap()
        {
            InitializeComponent();
            modelView = new ModelViews.NewMapWindowModelView();
            modelView.CloseDelegate += (s, e) => this.Close();
            this.DataContext = modelView;
        }
    }
}
